<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%--<title>Your home page</title>--%>
</head>
<body>
	<security:authorize ifNotGranted="ROLE_WORKER,ROLE_EMPLOYER">
		<jsp:forward page="/WEB-INF/jsp/login.jsp"></jsp:forward>
	</security:authorize>
	<security:authorize ifAllGranted="ROLE_WORKER">
		<tr>
			<td>Welcome <security:authentication property="name"/></td>
        </tr>
		<jsp:include page="/worker.do"></jsp:include>
	</security:authorize>
	<security:authorize ifAllGranted="ROLE_EMPLOYER">
		<tr>
			<td>Welcome <security:authentication property="name"/></td>
        </tr>
		<jsp:include page="/employer.do"></jsp:include>
	</security:authorize>


</body>
</html>